package com.yanqu.road.entity.activity.hongxian.config;

import com.yanqu.road.entity.activity.ActivityInfo;

import java.util.ArrayList;
import java.util.List;

public class HongXiuConfig {

    ActivityInfo activityInfo;

    List<HongXianMemoryInfo> memoryInfoList;

    List<HongXianRewardInfo> rewardInfoList;

    List<HongXianImageInfo> imageInfoList;

    int drawItemId;

    int noticeLimit;

    int EXCHANGE_SCORE_ITEM_ID;

    int TEN_GACHA_AND_SKIP;

    List<Integer> noticeSpecialList = new ArrayList<>();

    public HongXiuConfig(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }


    public HongXianMemoryInfo getHongXianMemoryInfo(int id){
        for (HongXianMemoryInfo memoryInfo : memoryInfoList) {
            if(memoryInfo.getId() == id){
                return memoryInfo;
            }
        }
        return null;
    }

    public HongXianRewardInfo getHongXianRewardInfo(int id){
        for (HongXianRewardInfo rewardInfo : rewardInfoList) {
            if(rewardInfo.getId() == id){
                return rewardInfo;
            }
        }
        return null;
    }

    public HongXianMemoryInfo getHongXianMemoryInfoZhen(int id, int quality){
        for (HongXianMemoryInfo memoryInfo : memoryInfoList) {
            if(memoryInfo.getId() != id && memoryInfo.getMemoryLevel() == quality){
                return memoryInfo;
            }
        }
        return null;
    }


    public ActivityInfo getActivityInfo() {
        return activityInfo;
    }

    public void setActivityInfo(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    public List<HongXianMemoryInfo> getMemoryInfoList() {
        return memoryInfoList;
    }

    public void setMemoryInfoList(List<HongXianMemoryInfo> memoryInfoList) {
        this.memoryInfoList = memoryInfoList;
    }

    public List<HongXianRewardInfo> getRewardInfoList() {
        return rewardInfoList;
    }

    public void setRewardInfoList(List<HongXianRewardInfo> rewardInfoList) {
        this.rewardInfoList = rewardInfoList;
    }

    public int getDrawItemId() {
        return drawItemId;
    }

    public void setDrawItemId(int drawItemId) {
        this.drawItemId = drawItemId;
    }

    public int getNoticeLimit() {
        return noticeLimit;
    }

    public void setNoticeLimit(int noticeLimit) {
        this.noticeLimit = noticeLimit;
    }

    public int getEXCHANGE_SCORE_ITEM_ID() {
        return EXCHANGE_SCORE_ITEM_ID;
    }

    public void setEXCHANGE_SCORE_ITEM_ID(int EXCHANGE_SCORE_ITEM_ID) {
        this.EXCHANGE_SCORE_ITEM_ID = EXCHANGE_SCORE_ITEM_ID;
    }

    public List<HongXianImageInfo> getImageInfoList() {
        return imageInfoList;
    }

    public void setImageInfoList(List<HongXianImageInfo> imageInfoList) {
        this.imageInfoList = imageInfoList;
    }

    public int getTEN_GACHA_AND_SKIP() {
        return TEN_GACHA_AND_SKIP;
    }

    public void setTEN_GACHA_AND_SKIP(int TEN_GACHA_AND_SKIP) {
        this.TEN_GACHA_AND_SKIP = TEN_GACHA_AND_SKIP;
    }

    public List<Integer> getNoticeSpecialList() {
        return noticeSpecialList;
    }

    public void setNoticeSpecialList(List<Integer> noticeSpecialList) {
        this.noticeSpecialList = noticeSpecialList;
    }
}
